package finance.api;

import cart.model.order.OrderMain;
import org.springframework.data.domain.Pageable;
import utils.sql.PageVo;

import java.util.List;
import java.util.Map;

/**
 * Created by rwb on 2017/3/6.
 */
public interface JdCheckDataApi {
    PageVo findCheckDataInfo(Pageable pageable, Map<String, Object> map);


//    void InVoiceExcelOut(ServletOutputStream outputStream);

    List<Map<String,Object>> getExportInfoList(String[] invoiceIdArr, String[] orderIdArr);

    //对账数据查询不分页
    List<Map<String,Object>> findCheckDataInfo(Map<String, Object> jdCheckVo);

    //保存导入的订单号，开票金额，状态
    Map saveJdCheck(String[] existOrderNos, String[] price, String[] existStatus);

    String findIsOrderByOrderNos(String s, String price);

    Map<String,Object> findOrderByOrderNo(String orderNo);

    Map<String,Object> findByOrderNo(String orderNo);

    List<OrderMain> findAllOrderNo();

    String checkPrice(String orderNo);

    void saveStatus(String returnValue, String orderNo);

    void saveAndFlush(OrderMain orderMain);
}
